package com.cos.emp.util;

import com.sun.org.apache.regexp.internal.RE;

/**
 * @author: COS
 * @time: 2022/6/1 15:25
 * @description:
 */
public class StringUtils {

    public static Integer stringToInt(String num) {
        try {
            return Integer.valueOf(num);
        } catch (NumberFormatException e) {
            return -1;
        }
    }

    public static boolean isNotEmpty(String... strs) {
        for (String str : strs) {
            if (str == null || str.trim().length() == 0) {
                return false;
            }
        }
        return true;
    }


}
